﻿@model ProductInfo
@{
    ProductInfo productInfo = Model;
    if (productInfo == null)
    {
        //如果外部传入值，就不需额外的调用开销
        var siteHelper = CoreServiceProvider.LocateService<INbSiteContextProvider>();
        productInfo = siteHelper.GetProductInfo();
    }
    int year = DateTime.Now.Year;
}
<span>Copyright &copy; @productInfo.SinceYear - @year , @productInfo.Copyright  @productInfo.ProductName</span>